import Vue from "vue";
import VueRouter from "vue-router";
import Home from "../views/Home.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    redirect: "/Home",
  },
  {
    path: "/Home",
    name: "Home",
    component: Home,
    children:[
      
        {
          path:'/home',
          redirect:'/home/homes'
        },
        {
          path:'homes',
          component: () => import(/* webpackChunkName: "homes" */ '../views/pajes/home/Homes.vue')
        },
        {
          path:'activity',
          component: () => import(/* webpackChunkName: "activity" */ '../views/pajes/home/Activity.vue')
        },
        {
          path:'player',
          component: () => import(/* webpackChunkName: "player" */ '../views/pajes/home/Player.vue')
        },
        {
          path:'my',
          component: () => import(/* webpackChunkName: "my" */ '../views/pajes/home/My.vue')
        },
      
    ]
  },
  {
    path: "/about",
    name: "About",
    component: () =>
      import(/* webpackChunkName: "about" */ "../views/About.vue"),
  },
];

const router = new VueRouter({
  routes,
});

export default router;
